<?php
/**
 * 验证是否是汉字
 * 
 * @param Model $model
 * @param string $value
 * @param boolean $bool
 * @return boolean
 */
function ChineseValidator($model, $value, $bool)
{
	if ($bool)
		return preg_match('/^['.chr(0xa1).'-'.chr(0xff).']+$/', $value);
	
	return true;
}